@extends('layouts.app')

@section('content')
<div class="container" style="margin:55px auto;overflow-x:hidden;">
    <div class="row">
        <div class="col-md-12" style="padding:0">
            <div class="panel panel-default" >
                <div class="panel-heading textIndent">提现</div>
                <div class="panel-body">
                    @if(session('msg'))
                    <div class="alert alert-warning alert-dismissible" role="alert">
                      <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                      <strong></strong> {{ session('msg') }}
                    </div>
                    @endif
                    <form  role="form" method="post" role="form" action="{{ url('/withdrawals') }}">
                        {!! csrf_field() !!}
                        <div class="row clearfix">
                            <div class="col-xs-12 expressive-bank1 col-md-12" style="line-height:25px;text-align:center">
                                <div> <span style="color:#ff7300;border-bottom:1px solid #ff7300;font-weight:bold">￥{{ $user->balance }}</span>
                                  <br><span style="color:#848484;font-size:1.2rem;">账户余额</span> <a href="{{ url('/withdrawals/banklist') }}"></a>
                                </div>
                            </div>
                            <div class="col-xs-12 expressive-bank1 col-md-12" style="line-height:30px;padding-top:10px">
                                <span>@if($bankCard){{ $bankCard->bank_name }}:{{ substr_replace( $bankCard->card_number,'*********',4,-4) }} @endif<a href="{{ url('/withdrawals/banklist') }}" style="border-radius:3px;color:#e62f17;display:inline-block;width:100%;height:30px;text-align:center;border:1px solid #e62f17">选择银行卡</a></span>
                            </div>
                            <div class="col-xs-12 form-group{{ $errors->has('money') ? ' has-error' : '' }} clearfix">
                                <!--<label class="col-md-4 control-label sr-only">开户姓名</label>-->
                                
                                <div class="col-md-12" style="padding:0;margin-top:10px;">
                                    <input type="text" class="form-control " style="border:1px solid #ccc;" name="money" value="{{ old('money') }}" placeholder="请输入提现金额">
                                    @if ($errors->has('money'))
                                        <span class="help-block">
                                            <strong>{{ $errors->first('money') }}</strong>
                                        </span>
                                    @endif
                                </div>
                            </div>
                            <!-- <div class="col-xs-12 expressive-bank1">
                                <input type="text" class="form-control" name="money" value="{{ old('money') }}" placeholder="请输入提现金额"/>
                                @if ($errors->has('money'))
                                    <span class="help-block">
                                        <strong>{{ $errors->first('money') }}</strong>
                                    </span>
                                @endif
                            </div> -->
                            <div class="col-xs-12 expressive-bank1">
                                <input id="submit" type="submit" class="btn btn-default col-xs-12" style="background:#e62f17;color:#fff;border:0;"/>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- Modal -->
	<div class="modal fade" id="Modalclose" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	  <div class="modal-dialog">
	    <div class="modal-content">
	      <div class="modal-header">
	        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
	        <h4 class="modal-title" id="myModalLabel">提示信息</h4>
	      </div>
	      <div class="modal-body" id="myModalbody">
	        	提示内容
	      </div>
	      <div class="modal-footer">
	        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
	        <button type="button" class="btn btn-primary">确认</button>
	      </div>
	    </div>
	  </div>
	</div>
	<script type="text/javascript">
		//$('#submit').click(function(){
			//$('#Modalclose').modal('toggle')
		//})
	</script>
</div>
@endsection
